package com.shiro.web;

import com.shiro.Result.model.ResultModel;
import com.shiro.enums.ResultEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: dengpeng
 * Date: 2018/7/6
 * Time: 14:59
 * Description: 登陆
 */
@RestController
@Slf4j
public class LoginController {

    @RequestMapping("/login")
    public ResultModel login() throws Exception {

        throw new Exception(ResultEnum.FAIL.getMsg());

    }

    @RequestMapping("/success")
    public ResultModel success() {

        return null;
    }
}
